//
//  DetailsViewController.m
//  08-Homework
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "DetailsViewController.h"
#import "Model.h"
@interface DetailsViewController ()
@property (nonatomic, strong)UILabel *name;


@end

@implementation DetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    NSLog(@"%@", _model.name);
    UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 200, 50)];
    name.textColor = [UIColor blackColor];
    name.text = [NSString stringWithFormat:@"姓名:%@", _model.name];
    [self.view addSubview:name];
    UILabel *age = [[UILabel alloc] initWithFrame:CGRectMake(10, 160, 200, 50)];
    age.textColor = [UIColor blackColor];
    age.text = [NSString stringWithFormat:@"年龄:%@", _model.age];
    [self.view addSubview:age];
    
    UILabel *gender = [[UILabel alloc] initWithFrame:CGRectMake(10, 220, 200, 50)];
    gender.textColor = [UIColor blackColor];
    gender.text = [NSString stringWithFormat:@"gender:%@", _model.gender];
    [self.view addSubview:gender];
    UILabel *photoNumber = [[UILabel alloc] initWithFrame:CGRectMake(10, 310, 200, 50)];
    photoNumber.textColor = [UIColor blackColor];
    photoNumber.text = [NSString stringWithFormat:@"photoNumber:%@", _model.phoneNumber];
    NSLog(@"%@", _model.phoneNumber);
    [self.view addSubview:photoNumber];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
